cmake_minimum_required(VERSION 2.8)
project(VelocityParticle)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})
find_package(Osg REQUIRED)
find_package(png REQUIRED)
file(GLOB_RECURSE srcs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} main.cpp VelocityParticle.cpp)
include_directories(${OSG_INCLUDE_DIR})
link_directories(${CMAKE_CURRENT_SOURCE_DIR}/proj/lib)
add_executable(${PROJECT_NAME} ${srcs})
target_link_libraries(${PROJECT_NAME} proj ${PNG_LIBRARY} ${ALL_OSG_LIBRARY})
file(COPY data DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")
install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION bin)
install(DIRECTORY data DESTINATION bin)